package com.Wang.abstractClass;

public abstract class Animal {
    public abstract void rest();
    public abstract void eat();
    public abstract void sleep();

    public void shout(){
        System.out.println("Animal.shout");
    }


}
class Dog extends Animal {
    public void rest() {
        System.out.println("Animal.rest");
    }
    public void eat() {
        System.out.println("Animal.eat");
    }
    public void sleep() {
        System.out.println("Animal.sleep");
    }
}